package com.zhugang.week14.programme.proxy;

import org.junit.Test;

import java.lang.reflect.InvocationTargetException;

/**
 * @program algorithms
 * @description: ProxyExampleTest
 * @author: chanzhugang
 * @create: 2022/09/23 01:11
 */
public class ProxyExampleTest {

    @Test
    public void test_proxy() throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException, ClassNotFoundException, InterruptedException {
        IOrder order = Aspect.getProxy(Order.class, "com.zhugang.week14.programme.proxy.TimeUsageAspect");
        order.pay();
        order.show();
    }
}